<script type="text/javascript">
  $(document).ready(function () {
    $('form').submit(function () {
        $('input:submit').val('Procesando...');
        $('input:submit').prop('disabled', true);
        return true;
    });
  });
</script>

<h1>Crear Banner</h1>

<%= render :partial => 'shared/error_messages', :locals => { :errors => @slide.errors } %>

<% form_for [:admin, @slide], :html => { :multipart => true } do |f| %>
    <p><span class="bold-text">Foto:</span><br/> <%= f.file_field :photo %></p>

    <% if @slide.photo.file? %>
        <p><%= image_tag @product.photo(:detail) %></p>
    <% end %>

    <%= f.submit 'Crear' %>
<% end %>